package edu.ustb.test.web;

public class SensitiveFilter implements Filter {

	@Override
	public void doFilter(Request request, Response response,
			FilterChain filterChain) {
		String requestStr = request.getRequestStr().replace("敏感", "");
		request.setRequestStr(requestStr);
		filterChain.doFilter(request, response, filterChain);
		String responseStr = response.getResponseStr() + " --- SensitiveFilter.doFilter --- ";
		response.setResponseStr(responseStr);
	}

}
